package com.example.books.Dao;

import com.example.books.Pojo.UserDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserDao {

    UserDO login(@Param(value = "username") String username);

    List<UserDO> query(@Param(value = "map") Map<String,Object> map);

    boolean create(UserDO userDO);

    boolean update(UserDO userDO);

    boolean delete(Map<String,Object> map);

    List<UserDO> search(@Param(value = "map") Map<String,Object> map);

    boolean uploadImg(Map<String, Object> map);

    UserDO getuser(String username);
}
